package com.sgb.kjwl.view.ui.adapter.self.publish;

import android.content.Context;
import android.widget.TextView;

import com.sgb.kjwl.BR;
import com.sgb.kjwl.R;
import com.sgb.link.entity.BrandEntity;
import com.swgk.core.recyclerview.adapter.BaseRecycleAdapter;
import com.swgk.core.recyclerview.adapter.ItemViewHolder;

import java.util.List;

public class BrandChildAdapter extends BaseRecycleAdapter<BrandEntity.BrandChild> {

    private TextView skill_tv;


    public BrandChildAdapter(Context context, List<BrandEntity.BrandChild> datas) {
        super(context, R.layout.item_storage, datas);
    }

    @Override
    public void convert(ItemViewHolder holder, final BrandEntity.BrandChild entity) {
        holder.setBinding(BR.viewModel, entity);
        skill_tv = holder.getItem().findViewById(R.id.skill_tv);
        skill_tv.setText(entity.getName());
    }

}
